package com.emotion.recognition.server.mlp;

import java.util.Collections;
import java.util.List;

public class InputNode extends AbstractNode {

    public static InputNode create() {
        return new InputNode();
    }

    private double bias;

    public void provideBias() {
        provideInput(bias);
    }

    public void provideInput(double d) {
        // Just propagate directly to outgoing edges.
        fire(d);
    }

    @Override
    public List<Edge> getIncomingEdges() {
        return Collections.emptyList();
    }

    public void setBias(double bias) {
        this.bias = bias;
    }

    public double getBias() {
        return bias;
    }
}
